package com.edu.bean;

import java.util.Date;
import java.util.List;

public class User {
    private int userId;
    private String userName;
    private String userPass;
    private Date regTime;
    private int cardId;
    private Card card;

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPass='" + userPass + '\'' +
                ", regTime=" + regTime +
                ", cardId=" + cardId +
                '}';
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public User() {
    }

    public User(int userId, String userName, String userPass, Date regTime, int cardId) {
        this.userId = userId;
        this.userName = userName;
        this.userPass = userPass;
        this.regTime = regTime;
        this.cardId = cardId;
    }

    public User(String userName, String userPass, Date regTime, int cardId) {
        this.userName = userName;
        this.userPass = userPass;
        this.regTime = regTime;
        this.cardId = cardId;
    }

    public User(String userName, String userPass, Date regTime) {
        this.userName = userName;
        this.userPass = userPass;
        this.regTime = regTime;
    }
}
